import axios from "axios";
import service from "@/config/index";

export default {
  async load() {
    let url = `${service.serviceArea}/tree`;
    // let url = '/tms/area/open/getAllInvalidArea'

    let response = await axios.get(url);
    return response;
  },
  filterSearch(name) {
    let url = `${service.serviceArea}/filter`;
    return axios.get(`${url}?name=${name}`);
  }
};
